package com.dwsoft.xml;

import com.dwsoft.utils.EnumUtil;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import lombok.Data;
import lombok.EqualsAndHashCode;
import word.api.interfaces.IDocument;
import word.api.interfaces.IElement;
import word.w2004.Document2004;
import word.w2004.elements.Paragraph;
import word.w2004.elements.ParagraphPiece;
import word.w2004.style.Font;
import word.w2004.style.ParagraphPieceStyle;
import word.w2004.style.ParagraphStyle;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author sqw
 * @version 1.0
 * @description TODO
 * @ClassName RootNode
 * @Date 2020/8/7
 * @since jdk1.8
 */
@Data
@EqualsAndHashCode(callSuper=true)
@XStreamAlias("document")
public class XDocument extends XmlNode<String>{

    @XStreamAsAttribute
    private String fontSize="22";

    public String getAlign() {
        return align;
    }

    public void setAlign(String align) {
        this.align = align;
    }

    @XStreamImplicit
    private List<XmlNode> xmlNodes;
}
